package com.ruoyi.insurance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.insurance.mapper.ClaimRecordMapper;
import com.ruoyi.insurance.domain.ClaimRecord;
import com.ruoyi.insurance.service.IClaimRecordService;

/**
 * 索赔记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
@Service
public class ClaimRecordServiceImpl implements IClaimRecordService 
{
    @Autowired
    private ClaimRecordMapper claimRecordMapper;

    /**
     * 查询索赔记录
     * 
     * @param claimId 索赔记录主键
     * @return 索赔记录
     */
    @Override
    public ClaimRecord selectClaimRecordByClaimId(Long claimId)
    {
        return claimRecordMapper.selectClaimRecordByClaimId(claimId);
    }

    /**
     * 查询索赔记录列表
     * 
     * @param claimRecord 索赔记录
     * @return 索赔记录
     */
    @Override
    public List<ClaimRecord> selectClaimRecordList(ClaimRecord claimRecord)
    {
        return claimRecordMapper.selectClaimRecordList(claimRecord);
    }

    /**
     * 新增索赔记录
     * 
     * @param claimRecord 索赔记录
     * @return 结果
     */
    @Override
    public int insertClaimRecord(ClaimRecord claimRecord)
    {
        return claimRecordMapper.insertClaimRecord(claimRecord);
    }

    /**
     * 修改索赔记录
     * 
     * @param claimRecord 索赔记录
     * @return 结果
     */
    @Override
    public int updateClaimRecord(ClaimRecord claimRecord)
    {
        return claimRecordMapper.updateClaimRecord(claimRecord);
    }

    /**
     * 批量删除索赔记录
     * 
     * @param claimIds 需要删除的索赔记录主键
     * @return 结果
     */
    @Override
    public int deleteClaimRecordByClaimIds(Long[] claimIds)
    {
        return claimRecordMapper.deleteClaimRecordByClaimIds(claimIds);
    }

    /**
     * 删除索赔记录信息
     * 
     * @param claimId 索赔记录主键
     * @return 结果
     */
    @Override
    public int deleteClaimRecordByClaimId(Long claimId)
    {
        return claimRecordMapper.deleteClaimRecordByClaimId(claimId);
    }
}
